import {httpPut} from '@/utils/request'


export async function restart( pipelineId:any ){
  const { code }  = await httpPut(`/api/v1/switch-warm-up/restart/${pipelineId}` )
  return code === 200;
}

export async function doSwitch( pipelineId:any ){
  const { code }  = await httpPut(`/api/v1/switch-warm-up/switch/${pipelineId}` )
  return code === 200;
}

